--[[
LuCI - Lua Configuration Interface

Copyright 2014 Steven Barth <emongxx@gmail.com>
Blog http://blog.emong.me

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

$Id$
]]--


m = Map("kxsw", translate("科学上网"),
	translate("通过shadowsocks和redsocks2来实现的科学上网。"))

function m.on_commit(self)
        luci.sys.exec("/etc/init.d/kxsw restart")                                                   
end 
s = m:section(NamedSection, "fakedns","kxsw", translate("防dns污染"),translate("注意：此功能需要一个能正确解析出ip地址的国外dns，如8.8.8.8，165.95.1.1；到wan口设定dns服务器即可。另外可以开启dnsmasq的all-servers选项，加速被污染的域名的查询速度。"))
s.addremove = false
e = s:option(Flag, "enable", translate("开启"))
e.rmempty = false
return m
